package com.project.service.impl;

import com.project.bean.PowerBean;
import com.project.mapper.IPowerMapper;
import com.project.service.IPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Set;
@Service
@Transactional
public class PowerServiceImpl implements IPowerService {
    @Autowired
    private IPowerMapper powerMapper;
    @Override
    public List<PowerBean> findAll() {
        return powerMapper.selectList(null);
    }

    @Override
    public Set<PowerBean> findByItem(Integer[] roles) {
        return powerMapper.findByItem(roles);
    }
}
